﻿@model IEnumerable<AdminLink>
@if (Model != null && Model.Count() > 0)
{
	foreach (var group in Model.GroupBy(r => r.Category))
	{
		if (!String.IsNullOrEmpty(group.Key))
		{
			<h3>@group.Key</h3>
		}	
		<menu>
			@foreach (AdminLink link in group)
			{
				<li>@link.ToHtml()</li>
			}
		</menu>
	}
}